class Test
{
    private int x,y,z;

    public void method1()
    {
        x=10;
        y=20;
        z=x*y;
    }
    public void display()
    {
        System.out.println(x+"  "+y+"  "+z);
    }
}

public class firstExample {
    public static void main(String[] args)
    {
        Test obj1=new Test();
        obj1.method1();
        obj1.display();
        obj1.x;
    }
}
